FROM python:3.7.5
COPY requirements.txt /usr/src/app/
WORKDIR /usr/src/app
RUN mkdir ~/.pip \
&& echo '[global] \n\
index-url=https://mirrors.bfsu.edu.cn/pypi/web/simple\n\
trusted-host=mirrors.bfsu.edu.cn' >> ~/.pip/pip.conf

RUN pip3 install --upgrade pip setuptools wheel && pip3 install -r requirements.txt
RUN apt-get update && \
    apt install -y libgl1-mesa-glx curl